package com.xca.znb.entity;

public class News {
    private int id;
    private String type;
    private String firstTitle;
    private String secondTitle;
    private String img;
    private String texts;
    private String publisher;
    private String time;

    // Constructors
    public News() {
        // Default constructor required for calls to DataSnapshot.getValue(News.class)
    }

    public News(String type, String firstTitle, String secondTitle, String img, String texts, String publisher, String time) {
        this.type = type;
        this.firstTitle = firstTitle;
        this.secondTitle = secondTitle;
        this.img = img;
        this.texts = texts;
        this.publisher = publisher;
        this.time = time;
    }

    public News(int id, String type, String firstTitle, String secondTitle, String img, String texts, String publisher, String time) {
        this.id = id;
        this.type = type;
        this.firstTitle = firstTitle;
        this.secondTitle = secondTitle;
        this.img = img;
        this.texts = texts;
        this.publisher = publisher;
        this.time = time;
    }

    // Getters and Setters

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getFirstTitle() {
        return firstTitle;
    }

    public void setFirstTitle(String firstTitle) {
        this.firstTitle = firstTitle;
    }

    public String getSecondTitle() {
        return secondTitle;
    }

    public void setSecondTitle(String secondTitle) {
        this.secondTitle = secondTitle;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public String getTexts() {
        return texts;
    }

    public void setTexts(String texts) {
        this.texts = texts;
    }

    public String getPublisher() {
        return publisher;
    }

    public void setPublisher(String publisher) {
        this.publisher = publisher;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    // Optionally, you can override toString() for easier debugging
    @Override
    public String toString() {
        return "News{" +
                "id=" + id +
                ", type='" + type + '\'' +
                ", firstTitle='" + firstTitle + '\'' +
                ", secondTitle='" + secondTitle + '\'' +
                ", img='" + img + '\'' +
                ", texts='" + texts + '\'' +
                ", publisher='" + publisher + '\'' +
                ", time='" + time + '\'' +
                '}';
    }
}